/**
 *  browserView.css
 *  Copyright (C) 2007-2011  GNUCITIZEN
 *  
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *  
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *  
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */

@import url("chrome://global/skin/");

/* ------------------------------------------------------------------------ */

#browser-view-navigation-toolbar {
	-moz-box-align: center;
}

/* ------------------------------------------------------------------------ */

.browser-view-navigation-button {
	margin: 0px 2px 0px 0px;
}

.browser-view-navigation-button > * {
	border: 0px;
	margin: 0px;
	padding: 0px;
}

.browser-view-navigation-button > label {
	display: none;
}

/* ------------------------------------------------------------------------ */

#browser-view-back-toolbarbutton {
	list-style-image: url("images/back.png");
}

#browser-view-forward-toolbarbutton {
	list-style-image: url("images/forward.png");
}

#browser-view-reload-toolbarbutton {
	list-style-image: url("images/reload.png");
}

#browser-view-stop-toolbarbutton  {
	list-style-image: url("images/stop.png");
}

/* ------------------------------------------------------------------------ */

#browser-view-content-locationbox {
	min-height: 14px;
	margin: 0px 2px 0px 0px;
}

/* ------------------------------------------------------------------------ */

#browser-view-content-macthrob {
	width: 16px;
	height: 16px;
	background: url("images/macthrob.gif") 50% 50% no-repeat;
}

/* ------------------------------------------------------------------------ */

#browser-view-go-toolbarbutton {
	display: none;
}

/* ------------------------------------------------------------------------ */

#browser-view-content-browser {
	background: white;
}

/* ------------------------------------------------------------------------ */

:root[lookandfeel="mac"] #browser-view-navigation-toolbar {
	padding: 4px 0px 4px 0px;
	-moz-appearance: -moz-mac-unified-toolbar;
}

:root[lookandfeel="mac"] #browser-view-navigation-toolbar > *:first-child {
	margin-left: 2px;
}

:root[lookandfeel="mac"] #browser-view-navigation-toolbar > *:last-child {
	margin-right: 2px;
}

:root[lookandfeel="mac"] .browser-view-navigation-button {
	height: 22px;
	min-width: 22px;
	border-radius: 3px;
	border: 1px solid rgba(59, 59, 59, 0.5);
	box-shadow: 0px 1px rgba(255, 255, 255, 0.2);
	background: -moz-linear-gradient(top, #ffffff, #cccccc);
}

:root[lookandfeel="mac"] .browser-view-navigation-button[disabled="true"] > image {
	opacity: 0.4;
}

:root[lookandfeel="mac"] .browser-view-navigation-button:not([disabled="true"]):active {
	background: #b5b5b5;
	text-shadow: 0px 1px rgba(255, 255, 255, .4);
	box-shadow: inset rgba(0, 0, 0, 0.3) 0px -6px 10px, inset #000 0px 1px 3px, inset rgba(0, 0, 0, 0.2) 0px 1px 3px, 0px 1px rgba(255, 255, 255, .4);
}

:root[lookandfeel="mac"] .browser-view-navigation-button:not([disabled="true"])[checked="true"] {
	background: #b5b5b5;
	text-shadow: 0px 1px rgba(255, 255, 255, .4);
	box-shadow: inset rgba(0, 0, 0, 0.3) 0px -6px 10px, inset #000 0px 1px 3px, inset rgba(0, 0, 0, 0.2) 0px 1px 3px, 0px 1px rgba(255, 255, 255, .4);
}

:root[lookandfeel="mac"] #browser-view-back-toolbarbutton {
	width: 28px;
	border-right: 0px;
	border-radius: 3px 0px 0px 3px;
	list-style-image: url("images/back.mac.png");
}

:root[lookandfeel="mac"] #browser-view-forward-toolbarbutton {
	width: 28px;
	margin-left: -2px;
	border-radius: 0px 3px 3px 0px;
	list-style-image: url("images/forward.mac.png");
}

:root[lookandfeel="mac"] #browser-view-reload-toolbarbutton {
	width: 26px;
	list-style-image: url("images/reload.mac.png");
}

:root[lookandfeel="mac"] #browser-view-stop-toolbarbutton  {
	width: 26px;
	list-style-image: url("images/stop.mac.png");
}

:root[lookandfeel="mac"] #browser-view-content-locationbox {
	height: 22px;
}

:root[lookandfeel="mac"][parentwindowtype="org.gnucitizen.weaponry.browser:browser-perspective"] #browser-view-navigation-toolbar {
	-moz-appearance: none;
	background: -moz-mac-chrome-inactive;
}

:root[lookandfeel="mac"]:not([parentwindowtype="org.gnucitizen.weaponry.browser:browser-perspective"]) .browser-view-navigation-button {
	opacity: 0.8;
}

/* ------------------------------------------------------------------------ */

:root[lookandfeel="lin"] #browser-view-navigation-toolbox {
	min-height: 34px;
	-moz-appearance: none;
	background: -moz-ButtonHoverFace;
	border-bottom: 1px solid ButtonFace;
}

:root[lookandfeel="lin"] #browser-view-navigation-toolbox > toolbar {
	min-height: 34px;
	-moz-appearance: none;
	background: transparent;
}

:root[lookandfeel="lin"] #browser-view-navigation-toolbar {
	padding: 2px 2px 2px 0px;
}

:root[lookandfeel="lin"] .browser-view-navigation-button {
	width: auto;
	height: auto;
	-moz-appearance: toolbarbutton;
}

:root[lookandfeel="lin"] #browser-view-back-toolbarbutton {
	list-style-image: url("moz-icon://stock/gtk-go-back?size=toolbar");
}

:root[lookandfeel="lin"] #browser-view-back-toolbarbutton[disabled="true"] {
	list-style-image: url("moz-icon://stock/gtk-go-back?size=toolbar&state=disabled");
}

:root[lookandfeel="lin"] #browser-view-forward-toolbarbutton {
	list-style-image: url("moz-icon://stock/gtk-go-forward?size=toolbar");
}

:root[lookandfeel="lin"] #browser-view-forward-toolbarbutton[disabled="true"] {
	list-style-image: url("moz-icon://stock/gtk-go-forward?size=toolbar&state=disabled");
}

:root[lookandfeel="lin"] #browser-view-reload-toolbarbutton {
	list-style-image: url("moz-icon://stock/gtk-refresh?size=toolbar");
}

:root[lookandfeel="lin"] #browser-view-reload-toolbarbutton[disabled="true"] {
	list-style-image: url("moz-icon://stock/gtk-refresh?size=toolbar&state=disabled");
}

:root[lookandfeel="lin"] #browser-view-stop-toolbarbutton  {
	list-style-image: url("moz-icon://stock/gtk-stop?size=toolbar");
}

:root[lookandfeel="lin"] #browser-view-stop-toolbarbutton[disabled="true"]  {
	list-style-image: url("moz-icon://stock/gtk-stop?size=toolbar&state=disabled");
}

:root[lookandfeel="lin"] #browser-view-content-locationbox {
	min-height: 34px;
	height: -moz-calc(100%);
}

:root[lookandfeel="lin"] #browser-view-statusbar {
	padding: 2px;
}

/* ------------------------------------------------------------------------ */

:root[lookandfeel="win"] #browser-view-navigation-toolbox {
	border: 0px;
	-moz-appearance: none;
	background: transparent;
	border-bottom: 1px solid ThreeDHighlight;
}

:root[lookandfeel="win"] #browser-view-navigation-toolbar {
	border: 0px;
	padding: 2px;
	-moz-appearance: none;
	background: transparent;
}

:root[lookandfeel="win"] .browser-view-navigation-button {
	width: auto;
	height: auto;
	-moz-appearance: toolbarbutton;
}

:root[lookandfeel="win"] .browser-view-navigation-button[disabled="true"] {
	opacity: 0.2;
}

:root[lookandfeel="win"] #browser-view-content-locationbox {
	height: 23px;
	margin-left: 2px;
}

:root[lookandfeel="win"] #browser-view-statusbar {
	padding: 2px;
}

/* ------------------------------------------------------------------------ */

:root[lookandfeel="win"]:-moz-system-metric(windows-default-theme) #browser-view-navigation-toolbox {
	border-bottom: 1px solid ThreeDShadow;
}

:root[lookandfeel="win"][parentwindowtype="org.gnucitizen.weaponry.browser:browser-perspective"]:-moz-system-metric(windows-default-theme) #browser-view-navigation-toolbox {
	background: ButtonHighlight;
}

/*  GNUCITIZEN (Information Security Think Tank)
 **********************************************/